﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    page1.html<br />
    Now：<div id="time"></div><br />
    <input type="button" value="Close Tab" onclick="CloseWindow('refresh')"/>
</body>
</html>
<script type="text/javascript">
    var time = document.getElementById("time");
    time.innerHTML = new Date().getTime();

    function CloseWindow(action) {
        if (window.CloseOwnerWindow) return window.CloseOwnerWindow(action);
        else window.close();
    } 

    function getData() { return "page1Data"}

</script>
